﻿using Autofac;
using System;
using System.Windows.Forms;

namespace MyFrame
{
    public partial class Form1 : Form
    {
       ILog logDB;
        public Form1()
        {
            InitializeComponent();
            logDB = ContainerHelper.container.Resolve<ILog>();
        }

        private void Form1_Load(object sender, EventArgs e)
        {
            logDB.Info("info");
            logDB.ErrorInfo("error");
        }
    }
}
